/**
 *Project: jh-framework
 *File: cn.xkshow.third.sms.kltx.KltxSMSHandleImp.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-4-27        hardy         create
 ****************************************************************
 *note:
 ***************************************************************/ 
package cn.xkshow.third.sms.kltx;

import java.util.Properties;
import java.util.Random;

import cn.xkshow.commons.logging.LoggerBase;
import cn.xkshow.io.file.PropertFile;
import cn.xkshow.third.sms.bean.SMSHandle;

public class KltxSMSHandleImp extends LoggerBase implements SMSHandle {
	private static KltxSMSHandleImp instance = null;
	
	private KltxSMSHandleImp(){}
	public static KltxSMSHandleImp getInstance(){		
		if(null == instance){
			instance = new KltxSMSHandleImp();
			inits();
		}
		return instance;
	}	
	private static void inits() {
		Properties pros = PropertFile.getInstance()
				.loadingProperties("org/hardy/third/sms/initsSMS.properties");
		if (pros != null) {
			KltxBean.URL_REG = pros.getProperty("sms.kltx.url.reg");
			KltxBean.URL_SEND = pros.getProperty("sms.kltx.url.send");
			KltxBean.KLTX_UC = pros.getProperty("sms.kltx.uc");
			KltxBean.KLTX_PW = pros.getProperty("sms.kltx.pw");
			KltxBean.KLTX_ISRETURN = pros.getProperty("sms.kltx.iseturn");
			KltxBean.RETURN_URL = pros.getProperty("sms.kltx.return.url");
		}
	}

	public String send(String[] toMobile, String txts) {
		// TODO Auto-generated method stub		
		return null;
	}	

}
